package com.cx.pojo;

import com.cx.common.BaseEntity;

import java.util.ArrayList;
import java.util.List;

public class ChassisExample extends BaseEntity {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ChassisExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andChassisIdIsNull() {
            addCriterion("chassis_id is null");
            return (Criteria) this;
        }

        public Criteria andChassisIdIsNotNull() {
            addCriterion("chassis_id is not null");
            return (Criteria) this;
        }

        public Criteria andChassisIdEqualTo(Integer value) {
            addCriterion("chassis_id =", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdNotEqualTo(Integer value) {
            addCriterion("chassis_id <>", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdGreaterThan(Integer value) {
            addCriterion("chassis_id >", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("chassis_id >=", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdLessThan(Integer value) {
            addCriterion("chassis_id <", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdLessThanOrEqualTo(Integer value) {
            addCriterion("chassis_id <=", value, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdIn(List<Integer> values) {
            addCriterion("chassis_id in", values, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdNotIn(List<Integer> values) {
            addCriterion("chassis_id not in", values, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdBetween(Integer value1, Integer value2) {
            addCriterion("chassis_id between", value1, value2, "chassisId");
            return (Criteria) this;
        }

        public Criteria andChassisIdNotBetween(Integer value1, Integer value2) {
            addCriterion("chassis_id not between", value1, value2, "chassisId");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeIsNull() {
            addCriterion("drivingmode is null");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeIsNotNull() {
            addCriterion("drivingmode is not null");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeEqualTo(String value) {
            addCriterion("drivingmode =", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeNotEqualTo(String value) {
            addCriterion("drivingmode <>", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeGreaterThan(String value) {
            addCriterion("drivingmode >", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeGreaterThanOrEqualTo(String value) {
            addCriterion("drivingmode >=", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeLessThan(String value) {
            addCriterion("drivingmode <", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeLessThanOrEqualTo(String value) {
            addCriterion("drivingmode <=", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeLike(String value) {
            addCriterion("drivingmode like", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeNotLike(String value) {
            addCriterion("drivingmode not like", value, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeIn(List<String> values) {
            addCriterion("drivingmode in", values, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeNotIn(List<String> values) {
            addCriterion("drivingmode not in", values, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeBetween(String value1, String value2) {
            addCriterion("drivingmode between", value1, value2, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andDrivingmodeNotBetween(String value1, String value2) {
            addCriterion("drivingmode not between", value1, value2, "drivingmode");
            return (Criteria) this;
        }

        public Criteria andBodystructureIsNull() {
            addCriterion("bodystructure is null");
            return (Criteria) this;
        }

        public Criteria andBodystructureIsNotNull() {
            addCriterion("bodystructure is not null");
            return (Criteria) this;
        }

        public Criteria andBodystructureEqualTo(String value) {
            addCriterion("bodystructure =", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureNotEqualTo(String value) {
            addCriterion("bodystructure <>", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureGreaterThan(String value) {
            addCriterion("bodystructure >", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureGreaterThanOrEqualTo(String value) {
            addCriterion("bodystructure >=", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureLessThan(String value) {
            addCriterion("bodystructure <", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureLessThanOrEqualTo(String value) {
            addCriterion("bodystructure <=", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureLike(String value) {
            addCriterion("bodystructure like", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureNotLike(String value) {
            addCriterion("bodystructure not like", value, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureIn(List<String> values) {
            addCriterion("bodystructure in", values, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureNotIn(List<String> values) {
            addCriterion("bodystructure not in", values, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureBetween(String value1, String value2) {
            addCriterion("bodystructure between", value1, value2, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andBodystructureNotBetween(String value1, String value2) {
            addCriterion("bodystructure not between", value1, value2, "bodystructure");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceIsNull() {
            addCriterion("typeassistance is null");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceIsNotNull() {
            addCriterion("typeassistance is not null");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceEqualTo(String value) {
            addCriterion("typeassistance =", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceNotEqualTo(String value) {
            addCriterion("typeassistance <>", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceGreaterThan(String value) {
            addCriterion("typeassistance >", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceGreaterThanOrEqualTo(String value) {
            addCriterion("typeassistance >=", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceLessThan(String value) {
            addCriterion("typeassistance <", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceLessThanOrEqualTo(String value) {
            addCriterion("typeassistance <=", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceLike(String value) {
            addCriterion("typeassistance like", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceNotLike(String value) {
            addCriterion("typeassistance not like", value, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceIn(List<String> values) {
            addCriterion("typeassistance in", values, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceNotIn(List<String> values) {
            addCriterion("typeassistance not in", values, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceBetween(String value1, String value2) {
            addCriterion("typeassistance between", value1, value2, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andTypeassistanceNotBetween(String value1, String value2) {
            addCriterion("typeassistance not between", value1, value2, "typeassistance");
            return (Criteria) this;
        }

        public Criteria andFronttypeIsNull() {
            addCriterion("fronttype is null");
            return (Criteria) this;
        }

        public Criteria andFronttypeIsNotNull() {
            addCriterion("fronttype is not null");
            return (Criteria) this;
        }

        public Criteria andFronttypeEqualTo(String value) {
            addCriterion("fronttype =", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeNotEqualTo(String value) {
            addCriterion("fronttype <>", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeGreaterThan(String value) {
            addCriterion("fronttype >", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeGreaterThanOrEqualTo(String value) {
            addCriterion("fronttype >=", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeLessThan(String value) {
            addCriterion("fronttype <", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeLessThanOrEqualTo(String value) {
            addCriterion("fronttype <=", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeLike(String value) {
            addCriterion("fronttype like", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeNotLike(String value) {
            addCriterion("fronttype not like", value, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeIn(List<String> values) {
            addCriterion("fronttype in", values, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeNotIn(List<String> values) {
            addCriterion("fronttype not in", values, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeBetween(String value1, String value2) {
            addCriterion("fronttype between", value1, value2, "fronttype");
            return (Criteria) this;
        }

        public Criteria andFronttypeNotBetween(String value1, String value2) {
            addCriterion("fronttype not between", value1, value2, "fronttype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeIsNull() {
            addCriterion("behindtype is null");
            return (Criteria) this;
        }

        public Criteria andBehindtypeIsNotNull() {
            addCriterion("behindtype is not null");
            return (Criteria) this;
        }

        public Criteria andBehindtypeEqualTo(String value) {
            addCriterion("behindtype =", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeNotEqualTo(String value) {
            addCriterion("behindtype <>", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeGreaterThan(String value) {
            addCriterion("behindtype >", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeGreaterThanOrEqualTo(String value) {
            addCriterion("behindtype >=", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeLessThan(String value) {
            addCriterion("behindtype <", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeLessThanOrEqualTo(String value) {
            addCriterion("behindtype <=", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeLike(String value) {
            addCriterion("behindtype like", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeNotLike(String value) {
            addCriterion("behindtype not like", value, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeIn(List<String> values) {
            addCriterion("behindtype in", values, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeNotIn(List<String> values) {
            addCriterion("behindtype not in", values, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeBetween(String value1, String value2) {
            addCriterion("behindtype between", value1, value2, "behindtype");
            return (Criteria) this;
        }

        public Criteria andBehindtypeNotBetween(String value1, String value2) {
            addCriterion("behindtype not between", value1, value2, "behindtype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}